import request from '@/utils/request'
//入库单html导出接口
export function whinExportHtml(query){
  return request({
    url:'/bill/whinform/printWhin',
    method:'get',
    params:query
  })
}

//打印入库单html接口
export function whinPrintHtml(query){
  return request({
    url:'/bill/whinform/printWhinHtml/',
    method:'get',
    params:query
  })
}
// 查询入库单列表
export function listWhinform(query) {
  return request({
    url: '/bill/whinform/list',
    method: 'get',
    params: query
  })
}

// 查询入库单详细
export function getWhinform(autoid) {
  return request({
    url: '/bill/whinform/' + autoid,
    method: 'get'
  })
}

// 新增入库单
export function addWhinform(data) {
  return request({
    url: '/bill/whinform',
    method: 'post',
    data: data
  })
}

// 修改入库单
export function updateWhinform(data) {
  return request({
    url: '/bill/whinform',
    method: 'put',
    data: data
  })
}

// 删除入库单
export function delWhinform(autoid) {
  return request({
    url: '/bill/whinform/' + autoid,
    method: 'delete'
  })
}

// 导出入库单
export function exportWhinform(query) {
  return request({
    url: '/bill/whinform/export',
    method: 'get',
    params: query
  })
}
